package com.globalwave.system.entity;

import javax.persistence.Column;

import com.globalwave.base.annotations.Comparison;
import com.globalwave.common.C;

public class UserCriterion  {
    private Long user_id  ;
    @Comparison(operator = "=")
    private String login_id ;

    @Column(name="login_id")
    private String login_id_like ;
    
    private String password_ ;

    private String name_ ;
    private String email_ ;

    @Column(name="user_id")
    private Long[] userIds ;
    
    public String getEmail_() {
        return email_;
    }
    public void setEmail_(String email_) {
        this.email_ = email_;
    }
    public String getLogin_id() {
    	if (login_id == null) {
    		return null ;
    	}
    	if (C.EMPTY_STRING.equals(login_id)) {
    		return null ;
    	}
        return login_id.toUpperCase();
    }
    public void setLogin_id(String login_id) {
        this.login_id = login_id;
    }
    public String getName_() {
    	if (name_ == null) {
    		return null ;
    	}
    	if (C.EMPTY_STRING.equals(name_)) {
    		return null ;
    	}
        return "%" + name_ + "%";
    }
    public void setName_(String name_) {
        this.name_ = name_;
    }
    public String getPassword_() {
        return password_;
    }
    public void setPassword_(String password_) {
        this.password_ = password_;
    }
    public Long getUser_id() {
        return user_id;
    }
    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }
    public Long[] getUserIds() {
        return userIds;
    }
    public void setUserIds(Long[] userIds) {
        this.userIds = userIds;
    }
	public String getLogin_id_like() {
    	if (login_id_like == null) {
    		return null ;
    	}
    	if (C.EMPTY_STRING.equals(login_id_like)) {
    		return null ;
    	}
		return "%" + login_id_like.toUpperCase() + "%";
	}
	public void setLogin_id_like(String login_id_like) {
		this.login_id_like = login_id_like;
	}
    
    
}
